import { fromJS } from 'immutable';

import { LIST_DATA } from './actionTypes';

const defaultState = fromJS({
    userList: []
})

export default (state = defaultState, action) => {
    if (action.type === LIST_DATA) {
        return state.set('userList', action.list);
    }
    return state;
}